/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kcollgen;
import java.util.logging.*;

/**
 *
 * @author Pierre
 */
public class Yformatter extends Formatter {

    @Override
    public String format(LogRecord record) {
        StringBuilder s = new StringBuilder(1000);
        s.append(formatMessage(record));
        s.append("\n<br>\n");
        return s.toString();
    }
    
    @Override
    public String getHead(Handler h){
        return "<HTML>\n<HEAD>\n<TITLE>YACKM Log</TITLE>\n</HEAD>\n<BODY>\n";
    }
    
    @Override
    public String getTail(Handler h){
        return "</BODY>";
    }
    
}
